#include <iostream>
#include <cstdio>
#include <string>
using namespace std;

int a[11] = {0};
string as;
int main()
{
    cin >> as;
    for (int i = 0; i < as.size(); i++)
    {
        a[int(as[i] - 48)] += 1;
    }
    for (int i = 0; i < 10; i++)
    {
        if (a[i] != 0)
        {
            cout << i << ":" << a[i] << endl;
        }
    }
    return 0;
}